'use strict';
const db=uniCloud.database()
const _=db.command
exports.main = async (event, context) => {
	const {_id,name} =  event
	const time = new Date()
	const res = await db.collection("users").doc(_id).update(
	{
	// interest:_.push(['赌'])
	// interest:_.pop()
	// interest:_.shift()
	// love:_.mul(0.1)
	// tel:13211112222
	interest:_.push({
		each:[`${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`],
		position:0
	}),
	}
	)
	return {
		msg:0,
		res
	}
};
